package io.github.eiot.json.serializer;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import io.github.eiot.codec.CP56time2a;

import java.io.IOException;

/**
 * @author yan
 * @since 2025-09-07
 */
public class CP56time2aSerializer extends JsonSerializer<CP56time2a> {
    @Override
    public void serialize(CP56time2a cp56time2a, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
        jsonGenerator.writeString(cp56time2a.toString());
    }
}
